local tiaoxin = fk.CreateSkill {
  name = "kq__tiaoxin3",
}


Fk:loadTranslationTable{
    ["kq__tiaoxin3"] = "挑衅",
    [":kq__tiaoxin3"] = "出牌阶段限一次，你可以指定一名你在其攻击范围内的角色，然后除非其对你使用一张【杀】，否则你弃置其一张牌。",
    ["#kq__tiaoxin3"] = "挑衅：令一名角色对你使用一张【杀】，否则你弃置其一张牌",
    ["$kq__tiaoxin31"] = "潲食糊口，老将帐下皆猪狗乎？",
    ["$kq__tiaoxin32"] = "屯鼠之辈，棺内莫非凿口之锄？",
    ["#kq__tiaoxin-use3"] = "挑衅：对 %src 使用一张【杀】，否则其弃置你一张牌",
}
tiaoxin:addEffect("active", {
    anim_type = "control",
    max_phase_use_time = 1,
    card_num = 0,
    target_num = 1,
    can_use = function(self, player)
        return player:usedSkillTimes(tiaoxin.name, Player.HistoryPhase) == 0
    end,
    card_filter = Util.FalseFunc,
    target_filter = function(self, player, to_select, selected)
        return #selected == 0 and to_select:inMyAttackRange(player)
    end,
    on_use = function(self, room, effect)
        local player = effect.from
        local target = effect.tos[1]
        local use = room:askToUseCard(target, {
            skill_name = tiaoxin.name,
            pattern = "slash",
            prompt = "#kq__tiaoxin-use3:"..player.id,
            extra_data = {
                exclusive_targets = {player.id},
                bypass_times = true,
            }
        })
        if use then
            use.extraUse = true
            room:useCard(use)
        else
            if not target:isNude() then
                local card = room:askToChooseCard(player, {
                target = target,
                skill_name = tiaoxin.name,
                flag = "he",
                })
                room:throwCard(card, tiaoxin.name, target, player)
            end
        end
    end,
})

return tiaoxin